package cn.appsys.service.DevUser;

import cn.appsys.mapper.DevUser.DevUserMapper;
import cn.appsys.pojo.DevUser;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
@Transactional
@Service
public class DevUserServiceimpl implements DevUserService {
    @Resource
    private DevUserMapper devUserMapper;
    @Override
    public DevUser getLoginUser(String devCode, String devPassword) {
        DevUser devUser=devUserMapper.getLoginUser(devCode);
        if(null!=devUser){
            if(!devUser.getDevPassword().equals(devPassword)){
                devUser=null;
            }
        }
        return devUser;
    }
}
